//
//  KongDataView.m
//  test
//
//  Created by 李彦宏 on 2018/3/18.
//  Copyright © 2018年 朱圳. All rights reserved.
//空数据view

#import "KongDataView.h"

@implementation KongDataView
-(id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if(self){
        UIImageView *imagV=[[UIImageView alloc]initWithFrame:CGRectMake(ScreenWidth*0.4, 150, ScreenWidth/5, ScreenHeight/7)];
        imagV.image=[UIImage imageNamed:@"NoData.png"];
        UILabel *lb=[[UILabel alloc]initWithFrame:CGRectMake(0, 150+ScreenHeight/7, ScreenWidth, 40)];
        lb.text=@" 亲,没有数据哦!";
        lb.textAlignment=NSTextAlignmentCenter;
        lb.textColor=[UIColor lightGrayColor];
        lb.font=[UIFont systemFontOfSize:18];
        [self addSubview:lb];
        [self addSubview:imagV];
        [self setBackgroundColor:[UIColor whiteColor]];
    }
    return self;
}
+(instancetype)NilDataview
{
    return [[self alloc]init];
    
}

@end
